/**
 *
 */
package cn.hg.jfsa.web.route;

import cn.hg.jfsa.web.controller.*;
import cn.hg.jfsa.web.interceptor.ThemeInterceptor;
import cn.hg.jfsa.web.interceptor.WebAppInterceptor;
import com.jfinal.config.Routes;

/**
 * @author GollyO
 *
 */
public class WebAppRoutes extends Routes {

	/*
	 * (non-Javadoc)
	 *
	 * @see com.jfinal.config.Routes#config()
	 */
	@Override
	public void config() {
		this.addInterceptor(new WebAppInterceptor());
		this.addInterceptor(new ThemeInterceptor());

		this.add("/about", AboutController.class);
		this.add("/case", CaseController.class);
		this.add("/", IndexController.class);
		this.add("/news", NewsController.class);
		this.add("/product", ProductController.class);
		this.add("/service", ServiceController.class);
	}

}
